<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>文件列表</title>
</head>
<body>
    <div class="login-box" style="width: 50%;">
        <table style="text-align: center;margin: auto">
            <thread>
                <tr>
                    <th style="text-align: center"> 文件id </th>
                    <th style="text-align: center"> 文件路径 </th>
                    <th style="text-align: center"> 文件大小(字节/B) </th>
                    <th style="text-align: center"> 文件描述 </th>
                </tr>
            </thread>
            <tbody id="file_list_boty">

            </tbody>
            <input type="button" name="button" id="button" style="display: none"/><br>
            <label for="button" class="btn btn-success" onclick="toUpload()">前往上传</label>
        </table>
    </div>

<script type="text/javascript"> //动态加载css和js
//项目名
var project_name = "http://localhost:8081/base";

//  添加css
var link1 = document.createElement('link');
link1.setAttribute('type', 'text/css');
link1.setAttribute('rel', 'stylesheet');
link1.setAttribute('href', project_name+'/static/css/file/file.css');

var link2 = document.createElement('link');
link2.setAttribute('type', 'text/css');
link2.setAttribute('rel', 'stylesheet');
link2.setAttribute('href', project_name+'/static/css/global.css');

var link3 = document.createElement('link');
link3.setAttribute('type', 'text/css');
link3.setAttribute('rel', 'stylesheet');
link3.setAttribute('href', project_name+'/static/assets/bootstrap-3.3.7-dist/css/bootstrap.css');
//写入css
document.head.appendChild(link1);
document.head.appendChild(link2);
document.head.appendChild(link3);

//添加js
var script1 = '<script type="text/javascript" src='+project_name+'/static/assets/js/jquery-3.4.1.min.js>'+'<'+'/script>';
var script2 = '<script type="text/javascript" src='+project_name+'/static/js/global.js>'+'<'+'/script>';
var script3 = '<script type="text/javascript" src='+project_name+'/static/js/file/file.js>'+'<'+'/script>';
var script4 = '<script type="text/javascript" src='+project_name+'/static/assets/bootstrap-3.3.7-dist/js/bootstrap.js>'+'<'+'/script>';
//写入js
document.write(script1,script2,script3,script4);
</script>
</body>
</html>